<?php
require_once './header.php';
if (!isset($_GET['uid']) || !isset($_GET['bid'])){
    ?>
    <script>
        history.go(-1);
    </script>
    <?php
    return 0;
}
require_once './core/sql.php';
$sql = new SqlS();
?>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="initial-scale=1.0,width=device-width,user-scalable=0,maximum-scale=1.0"/>	
	<title>报名成功</title>
	<link rel="stylesheet" href="./css/base.css">
	<link rel="stylesheet" href="./css/index.css">
    <script>
        function adapte() {//适配
            var designWidth = 1080, rem2px = 100;
            document.documentElement.style.fontSize = window.innerWidth / designWidth * rem2px + "px";
        }
        adapte();
    </script>
	<style>
	</style>
</head>
<body>
	<div class="sucess">
		<div class="sucess-top">
			<img src="./img/sucess.jpg" alt="成功">
			<p class="b fs54">恭喜你! 报名成功</p>
			<p class="b">请牢记您的id号：<span style="color: #c22020;"><u><?= $_GET['bid'] ?></u></span></p>
		</div>
		<div class="sucess-middle">
			<p class="fs24">如果您还有什么问题，可以随时咨询我们。</p>
			<div class="sucess-mes tac">
                <?php
                $setsJson = $sql->searchUidForSet($_GET['uid']);
                $setsArray = json_decode($setsJson, true);
                $userArray = $setsArray[2];
                ?>
				<p class="fs48 cf"><?= $userArray['企业名称'] ?></p>
				<ul class="flex">
					<li>
						<p class="fs28"><?= $userArray['联系人1'] ?></p>
						<p class="fs48"><?= $userArray['联系电话1'] ?></p>
					</li>
					<li>
                        <p class="fs28"><?= $userArray['联系人2'] ?></p>
                        <p class="fs48"><?= $userArray['联系电话2'] ?></p>
					</li>					
				</ul>
			</div>
		</div>
		<div class="sucess-bottom ">
			<div class="code flex">
				<img src="./img/wxCode.jpg" alt="wx二维码">
				<img src="./img/code1.png" alt="指纹">
			</div>
			<p class="tac fs20">长按指纹，识别二维码关注我们</p>
		</div>
	</div>
	
	<script src='./script/jquery.js'></script>
	<script src='./script/index.js'></script>
</body>
</html>
<?php

require_once './footer.php';